<template>
    <div>

        <el-menu
                class="el-menu-demo"
                mode="horizontal"
                background-color="#26282E"
                text-color="#67ABB1"
                active-text-color="#58964B">
            <el-menu-item index="0" @click.native="home">玩客同造</el-menu-item>
            <el-menu-item index="1">信息完善</el-menu-item>
            <el-menu-item index="3">数据中心</el-menu-item>
            <el-menu-item index="4">消息中心</el-menu-item>
        </el-menu>

        <userindex></userindex>
    </div>
</template>

<script>
    import userindex from "../components/molecule/userhome/userindex.vue"
    import funcs from "@/assets/overflow_y.js"

    export default {
        name: "UserHome",
        data() {
            return {
                username: this.$parent.username
            }
        },
        methods: {
            home() {
                this.$router.push('/')
            }
        },
        mounted() {
            this.$parent.hiden_side()
            funcs.funcs.show()
        },
        beforeRouteLeave(_from, _to, _next) {
            this.$parent.shown_side()
            this.$parent.show_side_flag = true
            _next()
        },
        components: {
            userindex
        }
    }
</script>

<style scoped>

</style>